var assert = require('assert');
var StringUtil = require('./StringUtil.js');

assert.ok(StringUtil.isBlank(""));
assert.ok(StringUtil.isBlank("  "));
assert.ok(StringUtil.isBlank("\t  "));
assert.ok(StringUtil.isBlank("  \n"));
assert.ok(StringUtil.isBlank("\f"));
assert.ok(StringUtil.isBlank("\r"));
assert.ok(StringUtil.isBlank("\n\f\r"));
assert.ok(!StringUtil.isBlank("\n\f\rdssd"));

var str = '\n\r\t  '+
'<?xml version="1.0" encoding="UTF-8" ?><business><company>Code Blog</company><owner>Nic Raboy</owner><employee><firstname>Nic</firstname><lastname>Raboy</lastname></employee><employee><firstname>Maria</firstname><lastname>Campos</lastname></employee></business>';
console.log(StringUtil.replaceXMLBlank(str));